import { getList } from '../../api/dashboard'

const state = {}
const mutations = {}
const actions = {
  async getListFn({ commit }, obj) {
    if(obj.roles == 'admin'){
      obj.uid = undefined
    }
    let { data } = await getList(obj)
    return data.data
  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}